import { makeAutoObservable } from 'mobx'
import { FlatList } from 'react-native'

class Home {
  constructor() {
    makeAutoObservable(this)
  }
  scrollTop = 0
  homeListRef: FlatList | null = null
  SET_SCROLL_TOP(val: number) {
    this.scrollTop = val
  }
  SET_HOME_LIST_REF(ref: FlatList | null) {
    this.homeListRef = ref
  }
}
const HomeStore = new Home()
export default HomeStore
